Skip to content

[Enhancement] 不在主界面,或者已显示对话框的情况下,暂时不弹出启动器更新对话框#6095

Open
ToobLac wants to merge 21 commits into
HMCL-dev:mainfrom
ToobLac:update-dialog
Open

[Enhancement] 不在主界面,或者已显示对话框的情况下,暂时不弹出启动器更新对话框#6095
ToobLac wants to merge 21 commits into
HMCL-dev:mainfrom
ToobLac:update-dialog

Conversation

@ToobLac

@ToobLac ToobLac commented May 16, 2026

Copy link
Copy Markdown
Contributor

Closes #5762
Fixes #5490

如果不在主界面,则会在切换回主界面之后再显示;如果已经有对话框,则在对话框关闭后再显示

Calboot and others added 21 commits March 11, 2026 20:55
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java
@Minecraft269

Copy link
Copy Markdown

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a mechanism to queue and display dialogs sequentially ("showLater" / "dialogLater") to prevent overlapping dialogs, particularly for the update dialog on the main page. It also refactors the binding of update properties and adjusts the execution order in "UpdateChecker". The feedback suggests extracting "getRootPage().getMainPage()" into a local variable in "Controllers.java" to improve readability and avoid redundant method calls.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
@Minecraft269

Copy link
Copy Markdown

这个PR似乎也很好了 CC @Glavo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants